<template>
  <div>
    <div   >
      <div  >
        <header  class="mint-header">
        <div   class="backBtn" @click="$router.back(-1)">
        <i  class="icon iconfont icon-back"></i>
      </div>
        <h1 class="mint-header-title">我要推荐</h1>
        <div class="mint-header-button is-right">
        </div>
        </header>
      </div>
      <div id="app">
        <div>
          <div class="wrapper bg_1">
            <span  class="shareGuide"><i  class="icon iconfont icon-zhiyin"></i></span>
            <div  class="nickBox">
              <div  class="nickInfo">
                <span  class="imgBox"><img  src="/static/img/logo_btn.png" alt=""></span><span >顺顺</span>
              </div>
              <span  class="nickTitle">邀您注册乐慧城市</span>
            </div>
            <div  class="btnCont" @click="regFn">
              立即注册
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { BannerListUrl, TraderListUrl } from "@/api/axiosFun";
export default {
  name: "Index",
  data() {
    return {
      msg: "Welcome to Your Vue.js App",
	  bannerList: [],
	  page:1,
	pageSize:100,
	traderType:"",
	cityId:"",
	orderNum:false,
	Latitude:"",
	Longitude:"",
    };
  },
  mounted() {
    //  this.init();
  },
  methods: {
    init() {
      BannerListUrl().then(res => {
        console.log(res);
        if (res.errCode == 0) {
          this.bannerList = res.data;
        }
      });
      TraderListUrl({
		  page:this.page,
		  pageSize:this.pageSize,
		  traderType:this.traderType,
		  cityId:this.cityId,
		  orderNum:this.orderNum,
		  Latitude:this.Latitude,
		  Longitude:this.Longitude
	  }).then(res => {
        console.log(res);
        if (res.errCode == 0) {
          this.bannerList = res.data;
        }
      });
    },
    mianduimian(){
      //this.$router.replace({ name: "qrcodeTuijian"});
      this.$router.replace({ name: "register1"});
    },
    regFn(){
       //this.$router.replace({ name: "qrcodeVipTuijian"});
       this.$router.replace({ name: "register"});
    },
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.mint-header {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: #26a2ff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 14px;
    height: 40px;
    line-height: 1;
    padding: 0 10px;
    position: relative;
    text-align: center;
    white-space: nowrap;
}
.mint-header[data-v-48f5980a] {
    height: 1.32rem;
    font-size: .44rem;
    background: -webkit-gradient(linear,left top,right top,from(#0af),to(#0085ff));
    background: linear-gradient(90deg,#0af,#0085ff);
    color: #fff;
}
.mint-header-button {
    -webkit-box-flex: .5;
    -ms-flex: .5;
    flex: .5;
}
.mint-header-button.is-left {
    text-align: left;
}
.mint-header .mint-button {
    background-color: transparent;
    border: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    color: inherit;
    display: inline-block;
    padding: 0;
    font-size: inherit;
}
.header-icon[data-v-48f5980a] {
    color: #fff;
}
.mint-button-icon {
    vertical-align: middle;
    display: inline-block;
}
.mintui {
    font-family: mintui!important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: .2px;
    -moz-osx-font-smoothing: grayscale;
}
.mint-header-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: inherit;
    font-weight: 400;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}
.mint-header-button {
    -webkit-box-flex: .5;
    -ms-flex: .5;
    flex: .5;
}
.mint-header-button.is-right {
    text-align: right;
}

.wrapper {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-clip: content-box;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-origin: content-box;
    font-size: .36rem;
    color: #fff;
}
.wrapper.bg_1 {
    background-image: url(/static/img/tuijian_qrcode.jpg);
}
.wrapper .shareGuide {
    width: .6rem;
    height: .6rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: .7rem;
    color: hsla(0,0%,100%,.6);
    position: absolute;
    top: .1rem;
    right: .6rem;
}
.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.wrapper .shareGuide i {
    font-size: inherit;
}
.nickBox {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-line-pack: center;
    align-content: center;
    text-align: center;
    padding: .1rem .3rem;
    font-size: .28rem;
    margin: .6rem 0;
}
.nickBox .nickInfo {
    color: #fff;
    padding-bottom: .2rem;
}
.nickBox .nickInfo span {
    font-size: .36rem;
}
.nickBox .nickInfo .imgBox {
    display: block;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    border: 2px solid #fff;
    overflow: hidden;
    margin-bottom: .2rem;
}
.nickBox .nickInfo .imgBox img {
    width: 100%;
}
.nickBox .nickInfo span {
    font-size: .36rem;
}
.nickBox .nickTitle {
    display: block;
    font-size: .42rem;
    line-height: .4rem;
    color: #fff;
    font-weight: 700;
    padding: .1rem 0 .05rem;
    letter-spacing: 2px;
}
.btnCont {
    position: fixed;
    right: 1.5rem;
    bottom: .71rem;
    left: 1.5rem;
    height: 1.42rem;
    line-height: 1.42rem;
    color: #fff;
    text-align: center;
    font-size: .56rem;
    background: -webkit-gradient(linear,left top,right top,from(#f42836),to(#cc0e80));
    background: linear-gradient(90deg,#f42836,#cc0e80);
    border-radius: .71rem;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
    -webkit-transform: translateZ(1px);
    transform: translateZ(1px);
}
</style>
